package managers;

import java.sql.SQLException;
import java.util.List;

import stores.EszkozStore;
import stores.EszkozStoreImpl;
import workspace.Workspace;
import beans.Eszkoz;

public class EszkozManagerImpl implements EszkozManager {

	private EszkozStore eszkozStore = new EszkozStoreImpl();

	@Override
	public List<Eszkoz> loadEszkozLista(Workspace workspace)
			throws SQLException {
		return eszkozStore.loadEszkozLista(workspace);
	}

	@Override
	public Eszkoz insertEszkoz(Workspace workspace, Eszkoz newEszkoz)
			throws SQLException {
		return eszkozStore.insertEszkoz(workspace, newEszkoz);
	}

	@Override
	public Eszkoz updateEszkoz(Workspace workspace, Eszkoz updatedEszkoz)
			throws SQLException {
		return eszkozStore.updateEszkoz(workspace, updatedEszkoz);
	}

	@Override
	public boolean deleteEszkoz(Workspace workspace, long userId)
			throws SQLException {
		return eszkozStore.deleteEszkoz(workspace, userId);
	}

	@Override
	public boolean deleteEszkozForTest(Workspace workspace, long userId)
			throws SQLException {
		return eszkozStore.deleteEszkozForTest(workspace, userId);
	}

}
